package com.zky.gulimall.product;

import java.util.Date;

/**
 * @Description TODO
 * @Author 张开源
 * @Date 2022/11/23 1:54
 * @Version 1.0
 **/
public class LotteryServiceImpl extends LotteryService {
    private MinibusTargetService minibusTargetService = new MinibusTargetService();

    @Override
    protected LotteryResult doDraw(String uId) {
        //摇号测试
        String lottery = minibusTargetService.lottery(uId);
        return new LotteryResult(uId, lottery, new Date());
    }

}
